{include file="public/header" /}
<div class="container mtb-15">
	{include file="user_setting/left_nav" /}

	<div class="user-setting col-md-10 form-horizontal">
		<h2 class="h3 post-title">{$user['is_set_password'] ? '修改密码' : '密码设置'}</h2>
		<div class="row mt-30">
			<form action="" method="post" class="ajax-form">
				{eq name="user.is_set_password" value="1"}
					<div class="form-group">
						<label for="name" class="required control-label col-sm-3">旧密码</label>
						<div class="col-sm-4">
							<input name="old_password" type="password" placeholder="请输入旧密码！" class="form-control" value="" required>
						</div>
					</div>
				{/eq}
				<div class="form-group ">
					<label for="name" class="required control-label col-sm-3">{$user['is_set_password'] ? '新' : ''}密码</label>
					<div class="col-sm-4">
						<input name="new_password" type="password" placeholder="请输入密码！" class="form-control password" value="" required>
					</div>
				</div>
				<div class="form-group ">
					<label for="name" class="required control-label col-sm-3">确认密码</label>
					<div class="col-sm-4">
						<input name="repassword" type="password" placeholder="请再次输入密码！" class="form-control" value="" required equalTo=".password" title="两次密码不一致">
					</div>
				</div>
				<div class="form-action row">
					<div class="col-sm-offset-3 col-sm-9">
						<button class="btn btn-xl btn-primary profile-sub" type="submit">保存修改</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

{include file="public/footer" /}
